package com.ch01;

import java.util.function.Function;

/**
 * 级联表达式和柯粒化
 * @author muhan
 *
 */
public class CurryDemo {
	public static void main(String[] args) {
		//级联表达式 
		Function<Integer, Function<Integer,Integer>> fun = x -> y -> x+y;
		Integer result = fun.apply(10).apply(34);
		System.out.println(result);
		
		int[] nums = {2,3,4,5,6};
//		Function f = 
	}
}
